package com.ming.ksdstate.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/*
 * @Author 徐柯
 * @Description 可以使用自定义类扩展MVC的功能
 * @Date 20:11 2021/4/18
 * @Param 
 * @return 
 **/
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    // 纯路由注册
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("index");
    }

}